<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="../../admin.inc.jsp"%>
<script>
	function toSubmit() {		
		var obj = $("#upload");
		var form = $("#form_adminModule_add");
		form.submit();
	}
	function callback(success, msg) {
		if (success) {
			alertMsg.info(msg);
			$.pdialog.closeCurrent();
			// 刷新列表
			var tabId = getCurrentNavtab().attr("tabid");
			if (tabId != null) {
				navTab.reload("", {
					navTabId : ""
				});
			}
		}else{
			alertMsg.warn(msg);
		}
	}

</script>
<div class="pageContent">
	<s:form name="myForm" id="form_adminModule_add" action="/admin/adminModule/add"
		method="POST" enctype="multipart/form-data" target="hidden_frame">
		<div class="pageFormContent" layoutH="58">
			<p>
				<label>上级ID：</label>
				<input type="text" name="adminModule.parentId"  value="${parentId}"  readonly="true">
			</p>
			
			<p>
				<label>名称：</label>
				<input type="text" name="adminModule.name" >
			</p>
			
			<p>
				<label>URL：</label>
				<input type="text" name="adminModule.url" >
			</p>
			
			<p>
				<label>系统代码：</label> 
				<select id = "type" name="adminModule.sysCode" class="required">
					<option value="admin" >admin</option>
				</select> 
			</p>
			
			<p>
				<label>启用标识：</label> 
				<select id = "type" name="adminModule.enableFlag" class="required">
					<option value="1" >是</option>
					<option value="0" >否</option>
				</select> 
			</p>
			
			<p>
				<label>顺序：</label>
				<input type="text" name="adminModule.orderIndex" >
			</p>

			<p>
				<label>描述：</label>
				<input type="text" name="adminModule.description" >
			</p>
			
		</div>
	</s:form>
	<div class="formBar">
		<ul>
			<li><div class="button">
					<div class="buttonContent">
						<button onclick="toSubmit()" type="button">确定</button>
					</div>
				</div></li>
			<li><div class="button">
					<div class="buttonContent">
						<button type="button" class="close">关闭</button>
					</div>
				</div></li>
		</ul>
	</div>
</div>
<iframe name='hidden_frame' id="hidden_frame" style='display: none'></iframe>